package adminapilogic

import (
	"code.bydev.io/cht/customer/kyc_admin_service/internal/app/serv"
	"context"

	v1 "code.bydev.io/cht/customer/kyc-stub.git/pkg/bybit/kyc/admin/v1"
	"code.bydev.io/cht/customer/kyc_admin_service/service/private/internal/svc"
)

type AdminAPISetCommonConfigLogic struct {
	svcCtx *svc.ServiceContext
}

func NewAdminAPISetCommonConfigLogic(svcCtx *svc.ServiceContext) *AdminAPISetCommonConfigLogic {
	return &AdminAPISetCommonConfigLogic{
		svcCtx: svcCtx,
	}
}

func (l *AdminAPISetCommonConfigLogic) SetCommonConfig(
	ctx context.Context,
	in *v1.SetCommonConfigRequest,
) (*v1.SetCommonConfigResponse, error) {
	return serv.NewService(l.svcCtx.NothingEnv).SetCommonConfig(ctx, in)
}
